home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 2000 November / cd joystick no120 novembre 2000 cd 1.iso / data / demos / gunlok / data1.cab / Program_Executable_Files / scripts / thruster.gsh < prev    next >
Text File  |  2000-08-22  |  2KB  |  72 lines

  1. // defines THRUSTER
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_THRUSTER_GSH
  8. #define INCLUDED_THRUSTER_GSH
  9.  
  10. ////////////////////////////////////////////////////////////////////////////////////
  11.  
  12. #include "defaults.gsh"
  13. #include "lasers.gsh"
  14.  
  15. hierarchy Hcy_Thruster
  16. {
  17.     file "units\LOWthruster.RIF"
  18.     name "lowthruster"
  19.     hotspot "dumflash"
  20. }
  21.  
  22. hierarchy Hcy_HighPoly_Thruster
  23. {
  24.     file "units\Thruster.RIF"
  25.     name "thruster"
  26.     hotspot "dumflash"
  27. }
  28.  
  29. hierarchy Hcy_Thruster_Shadow
  30. {
  31.     file "units\thruster_shadow.RIF"
  32.     name "thruster_shadow"
  33. }
  34.  
  35. character Chr_Thruster : Chr_DefaultBaddie
  36. {
  37.     turning speed   0.8    // this is in revolutions per second
  38.     walking speed   1.0    // this is in animation cycles per second
  39.     weapon            grenade launcher
  40.     strength        60    // initial strength points
  41.     aim             2    // how many degrees off target he can be at most
  42.     sight angle    30    // in degrees
  43.     sight range     20    // in metres
  44.     hearing range    17    // in metres
  45.     aggression    0.75    // from 0 to 1
  46.     gun yaw angle    0    // in degrees
  47.     //description        claw description
  48.     shadow hierarchy    Hcy_Thruster_Shadow
  49. }
  50.  
  51. role Rol_Thruster : Rol_DefaultRobot
  52. {
  53.     //shape                Hcy_Thruster
  54.  
  55.     shape        Hcy_HighPoly_Thruster
  56.  
  57.     character            Chr_Thruster
  58.  
  59.     destructibility Des_Explode
  60.  
  61.     identifier            "thruster"
  62.  
  63.     armour    2
  64.  
  65.     ai                    bot
  66. }
  67.  
  68. ////////////////////////////////////////////////////////////////////////////////////
  69.  
  70. // end wrapper - for preventing multiple or recursive inclusions
  71. #endif // !INCLUDED_THRUSTER_GSH
  72.